#ifndef CNGAMEPLAN_H
#define CNGAMEPLAN_H

#include <QFrame>
#include <QLabel>
#include "cnrandom.h"
#include "cnfigurine.h"

class cnGamePlan : public QFrame
{
    Q_OBJECT
public:
    explicit cnGamePlan(QObject *parent = 0);

    int generate(int size, int w, int h, char *pattern);
    int setPlayers(int count, int player);
private:
    QObject *game_plan;
    int size;
    int turn;
    QVector<QLabel*> plan;
    QVector<QLabel*> home;
    QVector<QLabel*> end;
    QVector<QLabel*> name;
    QVector<cnFigurine*> players;

    int local;
    int turn;
    int state;
signals:

public slots:
    void selected(cnFigurine *src);

};

#endif // CNGAMEPLAN_H
